﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using SelfService.Model.Models;


namespace SelfService.ViewModel.SysScreenQueueVMs
{
    public partial class SysScreenQueueTemplateVM : BaseTemplateVM
    {
        [Display(Name = "诊室")]
        public ExcelPropety Room_Excel = ExcelPropety.CreateProperty<SysScreenQueue>(x => x.RoomId);
        [Display(Name = "医生")]
        public ExcelPropety Doctor_Excel = ExcelPropety.CreateProperty<SysScreenQueue>(x => x.DoctorId);
        [Display(Name = "队列信息")]
        public ExcelPropety Info_Excel = ExcelPropety.CreateProperty<SysScreenQueue>(x => x.Info);
        [Display(Name = "创建时间")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<SysScreenQueue>(x => x.CreateTime);

	    protected override void InitVM()
        {
            Room_Excel.DataType = ColumnDataType.ComboBox;
            Room_Excel.ListItems = DC.Set<SysRoom>().GetSelectListItems(Wtm, y => y.DepartmentName);
            Doctor_Excel.DataType = ColumnDataType.ComboBox;
            Doctor_Excel.ListItems = DC.Set<SysDoctor>().GetSelectListItems(Wtm, y => y.Name);
        }

    }

    public class SysScreenQueueImportVM : BaseImportVM<SysScreenQueueTemplateVM, SysScreenQueue>
    {

    }

}
